package com.sxg.vo.req;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


@Data
public class RegisterReqVo {

    @NotNull(message = "用户名不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    @NotNull(message = "密码不能为空")
    @Min(value = 6, message = "密码长度不能少于6位")
    @Max(value = 20, message = "密码长度不能大于20位")
    private String password;

    @NotNull(message = "验证码不能为空")
    private String code;

}
